package com.jade.zsy.crm.entity;

import com.jade.bss.db.IdEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 会员主数据
 * User: JinYa 2009_jinya@163.com
 * Date: 2016-4-25
 * Time: 15:07
 * Version : 1.0
 * Remark:
 * History:
 */
@Entity
@Table(name = "STORE_CRM_INFO")
public class CrmInfo extends IdEntity {
    public static final int CRM_NORMAL = 0;
    public static final int CRM_STOP = 9;
    /**
     * 来源
     */
    @Column(name = "source", nullable = false,updatable = false)
    private String source;
    /**
     * 会员开户编号
     */
    @Column(name = "customer_id", nullable = true,updatable = true,length = 100)
    private long customerId=0;
    /**
     * 店铺编号
     */
    @Column(name = "store_id", nullable = true,updatable = true,length = 100)
    private long storeId=0;
    @Column(name = "storeName", nullable = true,updatable = true,length = 100)
    private String storeName;
    /**
     * 可用现金余额
     */
    @Column(name = "charge_money", nullable = true, updatable = true, length = 100)
    private float chargeMoney=0;
    /**
     * 赠送现金月娥
     */
    @Column(name = "giftChargeMoney", nullable = true, updatable = true, length = 100)
    private float giftChargeMoney=0;
    /**
     * 会员头像
     */
    @Column(name = "photo", nullable = true,updatable = true,length = 100)
    private String photo;
    /**
     * 会员卡号
     */
    @Column(name = "code", nullable = true,updatable = true,length = 100)
    private String code;
    /**
     * 会员等级编号
     */
    @Column(name = "level_id", nullable = false,updatable = true)
    private long levelId=0;
    @Column(name = "level", nullable = true,updatable = true,length = 100)
    private String level;
    /**
     * 姓名
     */
    @Column(name = "name", nullable = true,updatable = true,length = 100)
    private String name;
    /**
     * 手机
     */
    @Column(name = "mobile", nullable = true,updatable = true,length = 100)
    private String mobile;
    /**
     * 推荐人CODE
     */
    @Column(name = "recommend_code", nullable = true,updatable = true)
    private String recommendCode;
    /**
     * 推荐人姓名
     */
    @Column(name = "recommend_name", nullable = true,updatable = true,length = 100)
    private String recommendName;
    /**
     * 性别
     */
    @Column(name = "gender", nullable = true,updatable = true,length = 100)
    private String gender;
    /**
     * QQ号码
     */
    @Column(name = "qq", nullable = true,updatable = true,length = 100)
    private String qq;
    /**
     * 证件类型
     */
    @Column(name = "identity_type", nullable = true,updatable = true,length = 100)
    private String identityType;
    /**
     * 证件号码
     */
    @Column(name = "identity_no", nullable = true,updatable = true,length = 100)
    private String identityNo;
    /**
     * 生日
     */
    @Column(name = "birthday", nullable = true,updatable = true,length = 100)
    private String birthday;
    /**
     * 微信号
     */
    @Column(name = "wechat_id", nullable = true,updatable = true,length = 100)
    private String wechatID;
    /**
     * 电子邮件
     */
    @Column(name = "email", nullable = true,updatable = true,length = 100)
    private String email;
    /**
     * 推荐人
     */
    @Column(name = "recommender", nullable = true,updatable = true,length = 100)
    private String recommender;
    /**
     * 地址
     */
    @Column(name = "address", nullable = true,updatable = true,length = 100)
    private String address;
    /**
     * 工作单位
     */
    @Column(name = "employer", nullable = true,updatable = true,length = 100)
    private String employer;
    /**
     * 会员开户编号
     */
    @Column(name = "status", nullable = false,updatable = true,length = 100)
    private int status=CRM_NORMAL;
    /**
     * 首次消费日期
     */
    @Column(name = "scrq", nullable = true,updatable = true)
    private String scrq;
    /**
     * 首次消费数量
     */
    @Column(name = "scsl", nullable = true,updatable = true)
    private int scsl=0;
    /**
     * 首次消费金额
     */
    @Column(name = "scje", nullable = true,updatable = true)
    private float scje;
    /**
     * 首次消费关联小票单号
     */
    @Column(name = "scdh", nullable = true,updatable = true)
    private String scdh;
    /**
     * 累计消费次数
     */
    @Column(name = "xfcs", nullable = true,updatable = true)
    private int xfcs=0;
    /**
     * 累计消费数量
     */
    @Column(name = "yhje", nullable = true,updatable = true)
    private int yhje=0;
    /**
     * 兑换积分
     */
    @Column(name = "dhjf", nullable = true,updatable = true)
    private int dhjf=0;
    /**
     * 积分余额(当前积分)
     */
    @Column(name = "dqjf", nullable = true,updatable = true)
    private int dqjf=0;
    /**
     * 最近消费日期
     */
    @Column(name = "zjrq", nullable = true,updatable = true)
    private String zjrq;
    /**
     * 最近消费数量
     */
    @Column(name = "zjsl", nullable = true,updatable = true)
    private String zjsl;
    /**
     * 最近消费金额
     */
    @Column(name = "zjje", nullable = true,updatable = true)
    private String zjje;
    /**
     * 启用
     */
    @Column(name = "qy", nullable = true,updatable = true)
    private String qy;
    /**
     * 启用日期
     */
    @Column(name = "qyrq", nullable = true,updatable = true)
    private String qyrq;
    /**
     * 停用
     */
    @Column(name = "ty", nullable = true,updatable = true)
    private String ty;
    /**
     * 停用日期
     */
    @Column(name = "tyrq", nullable = true,updatable = true)
    private String tyrq;
    /**
     * 回访次数
     */
    @Column(name = "hfcs", nullable = true,updatable = true)
    private int hfcs=0;
    /**
     * 接待店员
     */
    @Column(name = "jddy_id", nullable = true,updatable = true)
    private long jddy_id=0;
    private int  xfsl=0;// DEFAULT '0' COMMENT '累计消费数量',
    private double  xfje=0.00;//private String   decimal(15,2) DEFAULT '0.00' COMMENT '累计消费金额',
    private int  xfjf=0;// DEFAULT '0' COMMENT '累计消费积分',
    private double  zyje=0.00;//private String   decimal(15,2) DEFAULT '0.00' COMMENT '赠予金额',
    private int  zyjf=0;// DEFAULT '0' COMMENT '赠予积分',
    private String  password;//private String   varchar(50) DEFAULT NULL,
    private double  cz_dqje=0.00;//private String   decimal(15,2) DEFAULT '0.00' COMMENT '储值卡余额 (系统自动回写，不可编辑)',
    private String  cz_yxrq;// DEFAULT NULL COMMENT '储值卡余额有效期 (系统自动回写，不可编辑)',
    private double  cz_czje=0.00;//private String   decimal(15,2) DEFAULT '0.00' COMMENT '储值卡累计充值金额 (系统自动回写，不可编辑)',
    private String  cz_czrq;// DEFAULT NULL COMMENT '储值卡最近充值日期 (系统自动回写，不可编辑)',
    private double  cz_xfje=0.00;//private String   decimal(15,2) DEFAULT '0.00' COMMENT '储值卡累计消费金额 (系统自动回写，不可编辑)',
    private String  cz_xfsl;// DEFAULT '0' COMMENT '储值卡累计消费数量 (系统自动回写，不可编辑)',
    private double  cz_zcje=0.00;//private String   decimal(15,2) DEFAULT '0.00' COMMENT '储值卡最近充值金额 (系统自动回写，不可编辑)',
    private String  cz_xfrq;// DEFAULT NULL COMMENT '储值卡最近消费日期(系统自动回写，不可编辑)',
    private double  cz_zxje=0.00;//private String   decimal(15,2) DEFAULT '0.00' COMMENT '储值卡最近消费金额(系统自动回写，不可编辑)',
    private String  cz_zxsl;// DEFAULT '0' COMMENT '储值卡最近消费数量(系统自动回写，不可编辑)',
    /**
     * 优惠券个数
     */
    @Column(name = "countCoupon", nullable = true,updatable = true)
    private int countCoupon=0;
    /**
     * 全部订单数
     */
    @Column(name = "countOrder", nullable = true,updatable = true)
    private int countOrder=0;
    /**
     * 消费记录
     */
    @Column(name = "countSettle", nullable = true,updatable = true)
    private int countSettle=0;
    /**
     * 充值笔数
     */
    @Column(name = "countRecharge", nullable = true,updatable = true)
    private int countRecharge=0;
    /**
     * 登记终端ID
     */
    @Column(name = "dj_zd", nullable = true,updatable = true)
    private String dj_zd;
    /**
     * 导入导购
     */
    @Column(name = "employeeId", nullable = true,updatable = true,length = 100)
    private long employeeId=0;
    @Column(name = "employeeName", nullable = true,updatable = true,length = 100)
    private String employeeName;
    /**
     * 客服导购编号
     */
    @Column(name = "cusEmployeeId", nullable = true,updatable = true,length = 100)
    private long cusEmployeeId=0;
    /**
     * 推送编号
     */
    @Column(name = "pushid", nullable = false,updatable = false,length = 100)
    private String pushid;
    /**
     * 登录密码
     */
    @Column(name = "loginPs", nullable = true,updatable = true)
    private String loginPs;
    /**
     * 支付密码
     */
    @Column(name = "payPs", nullable = true,updatable = true)
    private String payPs;
    /**
     * 备注
     */
    @Column(name = "remark", nullable = true,updatable = true,length = 100)
    private String remark;

    /**
     * 二维码图片编号
     */
    private long wxQrcodeId=0;
    /**
     * 二维码图片解析后的地址
     */
    private String wxSceneStr;
    /**
     * 二维码图片解析后的地址 生成的图片地址
     */
    private String wxSceneStrPic;

    public long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(long customerId) {
        this.customerId = customerId;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public float getChargeMoney() {
        return chargeMoney;
    }

    public void setChargeMoney(float chargeMoney) {
        this.chargeMoney = chargeMoney;
    }

    public float getGiftChargeMoney() {
        return giftChargeMoney;
    }

    public void setGiftChargeMoney(float giftChargeMoney) {
        this.giftChargeMoney = giftChargeMoney;
    }

    public long getStoreId() {
        return storeId;
    }

    public void setStoreId(long storeId) {
        this.storeId = storeId;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public long getLevelId() {
        return levelId;
    }

    public void setLevelId(long levelId) {
        this.levelId = levelId;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getIdentityType() {
        return identityType;
    }

    public void setIdentityType(String identityType) {
        this.identityType = identityType;
    }

    public String getIdentityNo() {
        return identityNo;
    }

    public void setIdentityNo(String identityNo) {
        this.identityNo = identityNo;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getWechatID() {
        return wechatID;
    }

    public void setWechatID(String wechatID) {
        this.wechatID = wechatID;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getRecommender() {
        return recommender;
    }

    public void setRecommender(String recommender) {
        this.recommender = recommender;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getEmployer() {
        return employer;
    }

    public void setEmployer(String employer) {
        this.employer = employer;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public long getWxQrcodeId() {
        return wxQrcodeId;
    }

    public void setWxQrcodeId(long wxQrcodeId) {
        this.wxQrcodeId = wxQrcodeId;
    }

    public String getWxSceneStr() {
        return wxSceneStr;
    }

    public void setWxSceneStr(String wxSceneStr) {
        this.wxSceneStr = wxSceneStr;
    }

    public String getWxSceneStrPic() {
        return wxSceneStrPic;
    }

    public void setWxSceneStrPic(String wxSceneStrPic) {
        this.wxSceneStrPic = wxSceneStrPic;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getRecommendCode() {
        return recommendCode;
    }

    public void setRecommendCode(String recommendCode) {
        this.recommendCode = recommendCode;
    }

    public String getRecommendName() {
        return recommendName;
    }

    public void setRecommendName(String recommendName) {
        this.recommendName = recommendName;
    }

    public String getScrq() {
        return scrq;
    }

    public void setScrq(String scrq) {
        this.scrq = scrq;
    }

    public int getScsl() {
        return scsl;
    }

    public void setScsl(int scsl) {
        this.scsl = scsl;
    }

    public float getScje() {
        return scje;
    }

    public void setScje(float scje) {
        this.scje = scje;
    }

    public String getScdh() {
        return scdh;
    }

    public void setScdh(String scdh) {
        this.scdh = scdh;
    }

    public int getXfcs() {
        return xfcs;
    }

    public void setXfcs(int xfcs) {
        this.xfcs = xfcs;
    }

    public int getYhje() {
        return yhje;
    }

    public void setYhje(int yhje) {
        this.yhje = yhje;
    }

    public int getDhjf() {
        return dhjf;
    }

    public void setDhjf(int dhjf) {
        this.dhjf = dhjf;
    }

    public int getDqjf() {
        return dqjf;
    }

    public void setDqjf(int dqjf) {
        this.dqjf = dqjf;
    }

    public String getZjrq() {
        return zjrq;
    }

    public void setZjrq(String zjrq) {
        this.zjrq = zjrq;
    }

    public String getZjsl() {
        return zjsl;
    }

    public void setZjsl(String zjsl) {
        this.zjsl = zjsl;
    }

    public String getZjje() {
        return zjje;
    }

    public void setZjje(String zjje) {
        this.zjje = zjje;
    }

    public String getQy() {
        return qy;
    }

    public void setQy(String qy) {
        this.qy = qy;
    }

    public String getQyrq() {
        return qyrq;
    }

    public void setQyrq(String qyrq) {
        this.qyrq = qyrq;
    }

    public String getTy() {
        return ty;
    }

    public void setTy(String ty) {
        this.ty = ty;
    }

    public String getTyrq() {
        return tyrq;
    }

    public void setTyrq(String tyrq) {
        this.tyrq = tyrq;
    }

    public int getHfcs() {
        return hfcs;
    }

    public void setHfcs(int hfcs) {
        this.hfcs = hfcs;
    }

    public long getJddy_id() {
        return jddy_id;
    }

    public void setJddy_id(long jddy_id) {
        this.jddy_id = jddy_id;
    }

    public String getDj_zd() {
        return dj_zd;
    }

    public void setDj_zd(String dj_zd) {
        this.dj_zd = dj_zd;
    }

    public long getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(long employeeId) {
        this.employeeId = employeeId;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }

    public String getPushid() {
        return pushid;
    }

    public void setPushid(String pushid) {
        this.pushid = pushid;
    }

    public long getCusEmployeeId() {
        return cusEmployeeId;
    }

    public void setCusEmployeeId(long cusEmployeeId) {
        this.cusEmployeeId = cusEmployeeId;
    }

    public int getCountCoupon() {
        return countCoupon;
    }

    public void setCountCoupon(int countCoupon) {
        this.countCoupon = countCoupon;
    }

    public int getCountOrder() {
        return countOrder;
    }

    public void setCountOrder(int countOrder) {
        this.countOrder = countOrder;
    }

    public int getCountSettle() {
        return countSettle;
    }

    public void setCountSettle(int countSettle) {
        this.countSettle = countSettle;
    }

    public int getCountRecharge() {
        return countRecharge;
    }

    public void setCountRecharge(int countRecharge) {
        this.countRecharge = countRecharge;
    }

    public String getPayPs() {
        return payPs;
    }

    public void setPayPs(String payPs) {
        this.payPs = payPs;
    }

    public String getLoginPs() {
        return loginPs;
    }

    public void setLoginPs(String loginPs) {
        this.loginPs = loginPs;
    }

    public int getXfsl() {
        return xfsl;
    }

    public void setXfsl(int xfsl) {
        this.xfsl = xfsl;
    }

    public double getXfje() {
        return xfje;
    }

    public void setXfje(double xfje) {
        this.xfje = xfje;
    }

    public int getXfjf() {
        return xfjf;
    }

    public void setXfjf(int xfjf) {
        this.xfjf = xfjf;
    }

    public double getZyje() {
        return zyje;
    }

    public void setZyje(double zyje) {
        this.zyje = zyje;
    }

    public int getZyjf() {
        return zyjf;
    }

    public void setZyjf(int zyjf) {
        this.zyjf = zyjf;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public double getCz_dqje() {
        return cz_dqje;
    }

    public void setCz_dqje(double cz_dqje) {
        this.cz_dqje = cz_dqje;
    }

    public String getCz_yxrq() {
        return cz_yxrq;
    }

    public void setCz_yxrq(String cz_yxrq) {
        this.cz_yxrq = cz_yxrq;
    }

    public double getCz_czje() {
        return cz_czje;
    }

    public void setCz_czje(double cz_czje) {
        this.cz_czje = cz_czje;
    }

    public String getCz_czrq() {
        return cz_czrq;
    }

    public void setCz_czrq(String cz_czrq) {
        this.cz_czrq = cz_czrq;
    }

    public double getCz_xfje() {
        return cz_xfje;
    }

    public void setCz_xfje(double cz_xfje) {
        this.cz_xfje = cz_xfje;
    }

    public String getCz_xfsl() {
        return cz_xfsl;
    }

    public void setCz_xfsl(String cz_xfsl) {
        this.cz_xfsl = cz_xfsl;
    }

    public double getCz_zcje() {
        return cz_zcje;
    }

    public void setCz_zcje(double cz_zcje) {
        this.cz_zcje = cz_zcje;
    }

    public String getCz_xfrq() {
        return cz_xfrq;
    }

    public void setCz_xfrq(String cz_xfrq) {
        this.cz_xfrq = cz_xfrq;
    }

    public double getCz_zxje() {
        return cz_zxje;
    }

    public void setCz_zxje(double cz_zxje) {
        this.cz_zxje = cz_zxje;
    }

    public String getCz_zxsl() {
        return cz_zxsl;
    }

    public void setCz_zxsl(String cz_zxsl) {
        this.cz_zxsl = cz_zxsl;
    }
}